import Vue from 'vue'
import Vuex from 'vuex'
import VueXAlong from 'vuex-along' //vuex-along

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo:{},
  },
  getters: {
  },
  mutations: {
    addUserInfo(state,userInfo){
      state.userInfo = userInfo
    },
    deleteUserInfo(state,userInfo){
      state.userInfo = {}
    }
  },
  actions: {
  },
  plugins: [VueXAlong()]  // vuex-along
})
